﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ResistorMoudel
{
    public interface ICommunication
    {
        string Name { get; set; }   
        string AllReceivedString { get; set; }

        bool IsOpen { get; }

        void Close();

        event Action<string> OnReceiveData;

        void Open();

        bool RtsEnable { get; set; }

        SendBackResult SendBackMessageInstant(string sendContent, int millisecondsTimeOut);

        void SendMessage(string sendContent);

        DateTime LastDateTime { get; set; }

    }
}
